﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ClassLibrary.DAO;
using System.Data;

public partial class Admin_ucControl_ucListTinTucSuKien : System.Web.UI.UserControl
{
    TblTinTucSuKienDAO tintucSKDAO = new TblTinTucSuKienDAO(Global.CONNECTION_STRING);

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            loadTinTucSK();
        }
    }

    private void loadTinTucSK()
    {
        grdTinTucSuKien.DataSource = tintucSKDAO.GetTinTucSK();
        grdTinTucSuKien.DataBind();
    }
   
}